//
//  OrderEditViewController.m
//  Assistant
//
//  Created by liaozhenming on 16/6/7.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import "OrderEditViewController.h"

@interface OrderEditViewController ()

@property (nonatomic, strong) NSMutableArray *selectedItems;

@end

@implementation OrderEditViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear: animated];
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear: animated];
    self.tabBarController.tabBar.hidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - 

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return self.orderType == 1 ? 2 : 3;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 3;
}

- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    if (indexPath.section == 0) {
        UITableViewCell *cell = [UITableViewCell kk_cellWithTableView: tableView];
        return cell;
    }
    else if (indexPath.section == 0) {
        UITableViewCell *cell = [UITableViewCell kk_cellWithTableView: tableView];
        return cell;
    }
    else{
        UITableViewCell *cell = [UITableViewCell kk_cellWithTableView: tableView];
        return cell;
    }
}

@end
